package com.xiaowan.user.service.impl;

import com.xiaowan.model.user.Address;
import com.xiaowan.user.mapper.AddressDao;
import com.xiaowan.user.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 实现功能：
 *
 * @author 作者[admin]
 * @version 1.0.00 2023-04-07 16:24
 */
@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    AddressDao addressDao;

    @Override
    public List<Address> findByPid(Integer pid) {
        return addressDao.findByPid(pid);
    }

    @Override
    public Address findById(Integer id) {
        Address address = addressDao.selectById(id);
        return address;
    }
}
